<%@page import="edu.chiansoft.javabean.Address" %>
<%@page import="edu.chiansoft.javabean.People"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Address address=new Address("陕西省","西安市","西咸新区");
People people=new People(1,"kkxi",21,address);
pageContext.setAttribute("key01", people);
%>
<h3>域里的value类型为javabean</h3>
${key01 }<br>

<!-- 调用的是getXXX方法 -->
个人信息：id值:${key01.id };姓名:${key01.name };年龄:${key01.age }<br>

地址信息：${key01.address }<br>

地址的详细信息：省：${key01.address.sheng };市：${key01.address.shi };区${key01.address.qv }。<br>
</body>
</html>